import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import 'package:xiaogang/pages/xiaogang_commodity_all/xiaogang_commodity_all_view.dart';
import 'package:xiaogang/pages/xiaogang_home/xiaogang_home_view.dart';
import 'package:xiaogang/pages/xiaogang_message/xiaogang_message_view.dart';
import 'package:xiaogang/pages/xiaogang_my/xiaogang_my_view.dart';
import '../../widget/NavigationIconView.dart';

class XiaogangState {
  List appBarTitle = ['首页', '分类', '购物车', '我的'];
  late List<NavigationIconView> navigationIconViews;
  RxInt currentIndex = 0.obs;
 late List<Widget> pages;

  XiaogangState() {
    navigationIconViews = [
      NavigationIconView(
          title: appBarTitle[0],
          iconPath: 'assets/images/home.png',
          activeIconPath: 'assets/images/home-fill.png'),
      NavigationIconView(
          title: appBarTitle[1],
          iconPath: 'assets/images/all.png',
          activeIconPath: 'assets/images/all-fill.png'),
      NavigationIconView(
          title: appBarTitle[2],
          iconPath: 'assets/images/cart-Empty.png',
          activeIconPath: 'assets/images/cart-Empty-fill.png'),
      NavigationIconView(
          title: appBarTitle[3],
          iconPath: 'assets/images/Customer management.png',
          activeIconPath: 'assets/images/Customer management-fill.png'),
    ];
    pages=[
      XiaogangHomePage(),
      XiaogangCommodityAllPage(),
      XiaogangMessagePage(),
      XiaogangMyPage(),
    ];

  }
}
